package practicedemo12;

import java.util.Scanner;

public class practicedemo12 {
    //运用switch case实现周一到周天需要做的事情
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        System.out.println("输入星期：");
        String x = sc.next();
        switch (x){
            case "周一":
                System.out.println("跑步");
                break;
            case "周二":
                System.out.println("游泳");
                break;
            case "周三":
                System.out.println("慢走");
                break;
            case "周四":
                System.out.println("骑自行车");
                break;
            case "周五":
                System.out.println("拳击");
                break;
            case "周六":
                System.out.println("爬山");
                break;
            case "周天":
                System.out.println("睡觉");
                break;
            default:
                System.out.println("错误的输入");
                break;
        }
    }
}
